package cn.buk.api.ctrip.dto.hotel;

import cn.buk.api.ctrip.util.xstream.MyDateConverter;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;

import java.util.Date;

/**
 * 取消制度
 * Created by william on 2015-1-23.
 */
@XStreamAlias("CancelPenalty")
public class HotelAvailResponseCancelPenalty {
    // Start="2013-6-27 12:00:00" End="2013-06-27 19:00:00"
    //Start属性：开始时间；End属性：结束时间，表示在这个时间段取消是需要扣除罚金，start表示了最迟的取消时间，在这个时间前取消不需要扣除罚金

    @XStreamAlias("Start")
    @XStreamAsAttribute
    @XStreamConverter(value=MyDateConverter.class, strings={"yyyy-MM-dd'T'HH:mm:ss"})
    private Date startDate;

    @XStreamAlias("End")
    @XStreamAsAttribute
    @XStreamConverter(value=MyDateConverter.class, strings={"yyyy-MM-dd'T'HH:mm:ss"})
    private Date endDate;

    /**
     *  取消罚金，金额应该等于担保金额
     */
    @XStreamAlias("AmountPercent")
    private HotelAvailResponseAmount amount;




    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public HotelAvailResponseAmount getAmount() {
        return amount;
    }

    public void setAmount(HotelAvailResponseAmount amount) {
        this.amount = amount;
    }
}
